﻿CREATE TABLE [dbo].[StoredProcedure] (
    [StoredProcedureID] INT            IDENTITY(1,1) NOT NULL,
	[Name] Varchar (400) NULL,
    [Text]              VARCHAR (MAX) NULL,
    [DatabaseID]        INT           NULL,
    CONSTRAINT [PK_StoredProcedure] PRIMARY KEY CLUSTERED ([StoredProcedureID] ASC),
    CONSTRAINT [FK_StoredProcedure_Database] FOREIGN KEY ([DatabaseID]) REFERENCES [dbo].[Database] ([DatabaseID])
);

